package com.my.swas.sso.module.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "sys_menu")
public class Menu implements Serializable{
    private static final long serialVersionUID = -6812242071705361506L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 资源名称
     */
    private String name;
    /**
     * 资源url
     */
    @TableField(value = "res_url")
    private String resUrl;
    /**
     * 资源类型   1:菜单    1：按钮  1：接口
     */
    private Integer type;
    /**
     * 父资源
     */
    @TableField(value= "parent_id")
    private Long parentId;

    /**
     * 排序
     */
    private Integer sort;

    //@TableLogic 该字段开启逻辑删除
    private Integer status;

    private String icon;

    private Integer classify;

    /*是否新窗口打开*/
    private Integer target;
    /*菜单URL*/
    private String menuUrl;


}